package com.example.schoolhelp.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.WindowManager;
import android.widget.LinearLayout;

import com.example.schoolhelp.R;
import com.example.schoolhelp.util.SystemUtil;

/**
 * Created by user on 2017/7/21.
 */

public class TestActivity extends AppCompatActivity {
    Toolbar toolbar;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
        setContentView(R.layout.activity_test);

        toolbar = (Toolbar) findViewById(R.id.test_toolbar);
//        setSupportActionBar(toolbar);
//        LinearLayout.LayoutParams param = (LinearLayout.LayoutParams) toolbar.getLayoutParams();
//        param.setMargins(0, SystemUtil.getStatusBarHeight(this), 0, 0);
//        toolbar.setLayoutParams(param);
    }
}
